package com.sdcs.server.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sdcs.server.daoimpl.CourseDaoImpl;
import com.sdcs.server.model.Course;

@Service
public class CourseService {
	@Autowired
	private CourseDaoImpl courseDaoImpl;

	public void delete(String id) {
		courseDaoImpl.delete(id);
	}
	public List<Course> getAll() {
		return courseDaoImpl.getAll();
	}
	public void save(Course object) {
		courseDaoImpl.save(object);
	}
}
